package cn.jdx.emailtest;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

@Component
@Data
@ToString
@Validated
@ConfigurationProperties(prefix = "emailtest")
public class EmailTest {
    @Email
    private String email;
}
